<#setting number_format=",###.###">
<#setting classic_compatible="true">
<style id="printStyle">

#printHead,#tableArea,#remark,#printFooter,#contractContent,#pageFooter{
    font-family: Times New Roman,DFPBiaoKaiShu-B5,KaiTi_GB2312,'楷体';
    font-size: 13px;
    line-height: 22px;
}
td,tr,talbe {
    margin: 0;
    padding: 0;
}

div{
    word-break:break-strict;
}

table {
    border-spacing: 0;
    border-spacing: 0 !important;
    *border-collapse: expression('separate', cellSpacing =   '0px');
    border-spacing: expression(this.cellSpacing = 0);
    table-layout:fixed; 
    word-break:break-strict; 
}

td,th {
    display: table-cell;
    vertical-align: inherit;
}

table th,table td {
    text-align: left;
    line-height: 25px;
}

.printTable {
    width: 100%;
    margin: 0;
    padding: 0;
}

.printTable td {
    line-height: 25px;
    word-wrap:break-word;
    word-break:break-all;
}

.printTable tr {
    width: 100%;
}
.printTable td{
    border: 1px solid gray;
    border-collapse:collapse;  
}
.printLine td{
    text-align: center;
}
</style>
<div id="printHead"  style="width: 700px;">
    <div style="width: 180px;float: left;">
            <img alt="" src="${staticDomain}images/system/logo/logo-middle.jpg" width="180"/>
        </div>
    <div style="line-height: 30px; font-size:1.9em; font-weight: bolder; text-align: center;width: 360px;float: left;margin-top: 15px;">费用申请单</div>
    <div style="float: left;width: 700px;">
        <table border="0" cellspacing="0" cellpadding="0" width="98%" style="margin-top:15px;">
            <tbody> 
                <tr>
                    <td width="15%">申请日期：</td>
                    <td width="35%">${entity.generateDate?string("yyyy-MM-dd")}</td>
                    <td width="15%">编号：</td>
                    <td width="35%">${entity.no}</td>
                </tr>
                <tr>
                    <td width="15%">申请部门：</td>
                    <td colspan="3">${entity.company.name}-${deparment!}</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<div id="tableArea">
    <div style="float: left;width: 700px;">
        <table class="printTable" style="margin-top: 15px;">
            <thead>
               <tr class="printLine">
                    <td width="5%">序号</td>
                    <td width="15%">款项</td>
                    <td width="10%">请款金额</td>
                    <td width="10%">收款人</td>
                    <td width="8%">支付方式</td>
                    <td width="10%">帐号名称</td>
                    <td width="17%">帐号</td>
                    <td width="10%">银行名称</td>
                    <td width="15%">支行</td>
                </tr>
            </thead>
            <tbody>
                <#list orderItems as item>
                <tr>
                    <td style="text-align: left;">&#160;${item_index + 1}</td>
                    <td style="text-align: left;">&#160;${item.reason }</td>
                    <td style="text-align: left;">&#160;${item.amount }</td>
                    <td style="text-align: left;">&#160;${item.receiver }</td>
                    <td style="text-align: left;">&#160;<#if item.type==1>现金<#elseif item.type==2>转帐</#if></td>
                    <td style="text-align: left;">&#160;${item.bankAccountName!}</td>
                    <td style="text-align: left;">&#160;${item.bankNo!}</td>
                    <td style="text-align: left;">&#160;${item.bankName!}</td>
                    <td style="text-align: left;">&#160;${item.bankBranchName!}</td>
                </tr>
                </#list>
                <tr>
                    <td colspan="2">&#160;合计:</td>
                    <td>&#160;${entity.total}</td>
                    <td>&#160;</td>
                    <td>&#160;</td>
                    <td>&#160;</td>
                    <td>&#160;</td>
                    <td>&#160;</td>
                    <td>&#160;</td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<div id="contractContent">
    <div style="float: left;width: 700px;">
        <table>
            <tr>
                <td width="20%">预计支付日期：</td>
                <td colspan="3">${entity.predictPayDate?string("yyyy-MM-dd")}</td>
            </tr>
            <tr>
                <td>备注：</td>
                <td colspan="3">${entity.remark!}</td>
            </tr>
            <tr>
                <td width="20%">申请人：</td>
                <td width="30%">${applier.userName}</td>
                <td width="20%">审批人：</td>
                <td width="30%"><#if auditor??>${auditor.userName}</#if></td>
            </tr>
            <tr>
               <td>实际支付日期：</td>
               <td colspan="3"><#if entity.payDate??>${entity.payDate?string("yyyy-MM-dd")}</#if></td>
            </tr>
            <tr>
                <td>支付凭证备份：</td>
                <td><#if entity.backup??><#if entity.backup>是<#else>否</#if></#if></td>
                <td>备份日期：</td>
                <td><#if entity.backup??><#if entity.backup><#if entity.backupDate??>${entity.backupDate?string("yyyy-MM-dd")}</#if></#if></#if></td>
            </tr>
        </table>
    </div>
</div>
